<template>
  <div id="app">
    <div class="content">
      <router-view />
    </div>
    <div class="footer" @click="jumpTo">项目开源地址</div>
  </div>
</template>

<script>
export default {
  methods: {
    jumpTo() {
      window.open('https://gitee.com/lxl-233/xd_spider_exam', '_blank')
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  background-color: rgb(245, 245, 245);
}
body{
    margin: 0;
  }
  html,body,#app{
    height: 100%;
    overflow-x: hidden;
  }
#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}

.footer {
  margin: 0 auto;
  text-align: center;
  width: 100%;
  position: absolute;
  bottom: 0;
  padding: 20px 0;
  background-color: #333;
  color: #fff;
  font-size: 14px;
}
.content {
  padding-bottom: 40px;
}
.footer:hover {
  cursor: pointer;
  text-decoration: underline;
}
</style>
